<?php

namespace app\controller\bossManager;

use app\validate\PageValidate;
use app\validate\SendCodeHistoryValidate;
use share\service\SendCodeHistoryService;

class SendCodeHistoryController extends WebBossController{
    public function initValidate(){        
        $this->validate = new SendCodeHistoryValidate();
    }

    public function list_action(){  
        $input = $this->check();        
        $page = $this->check('pageInfo',null,(new PageValidate()));        
        $data = SendCodeHistoryService::getListInfo($input,$page,'created DESC');
        $total = SendCodeHistoryService::getListCountInfo($input);
        return self::ok(self::formatPageData($page,$total,$data));
    }


}